* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    margin-bottom: 15px;
    color: #34495e;
}

.room-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-section button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.room-section button:hover {
    background: #2980b9;
}

.join-room {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.join-room input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#room-info {
    font-weight: bold;
    color: #e74c3c;
}

.video-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-container {
    margin-bottom: 20px;
    text-align: center;
}

video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.upload-section {
    margin-bottom: 20px;
}

.upload-section input[type="file"] {
    margin-bottom: 10px;
    display: block;
}

.upload-section button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.upload-section button:hover {
    background: #229954;
}

#upload-status {
    margin-top: 10px;
    font-size: 14px;
    color: #e74c3c;
}

.control-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-section button {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.control-section button:hover {
    background: #8e44ad;
}

.progress-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#progress-bar {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: background 0.3s;
}

#progress-bar::-webkit-slider-thumb:hover {
    background: #2980b9;
}

#progress-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

#progress-bar::-moz-range-thumb:hover {
    background: #2980b9;
}

#time-display {
    font-size: 14px;
    color: #666;
    min-width: 100px;
}

@media (max-width: 768px) {
    .control-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .progress-container {
        min-width: auto;
    }
    
    .join-room {
        flex-direction: column;
    }
}